package com.xuesinuo.ots.config.pojo;

import lombok.Data;

@Data
public abstract class PageParam {
    /** 页码 */
    private int pageNum = 1;
    /** 每页条数 */
    private int pageSize = 10;

    public int getOffset() {
        return (this.pageNum - 1) * this.pageSize;
    }

    public int getLimit() {
        return this.pageSize;
    }
}